﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// Base class for all simple (non-complex) controls.
	/// </summary>
	public abstract class BaseSimpleControl : TControl, ISimpleControl
	{
		#region PUBLIC
		#region INIT
		/// <summary>
		/// Ctor.
		/// </summary>
		/// <param name="tag"></param>
		public BaseSimpleControl(HtmlTextWriterTag tag)
			: base(tag)
		{
		}
		#endregion
		#endregion
		#region INTERNAL
		#region METHODS
		#region INIT
		/// <summary>
		/// Registers SimpleControl.js.
		/// </summary>
		protected internal override void RegisterIncludes(IncludeCollection includes)
		{
			base.RegisterIncludes(includes);

			SimpleControlCommon.RegisterIncludes(this, includes);
		}
		#endregion
		#endregion
		#endregion
	}
}
